---  * 反弹[0]%的伤害
---@class BuffEffect64 : BaseBuffEffect
BuffEffect64 = ClientFight.CreateClass("BuffEffect64", ClientFight.BaseBuffEffect)
local t = BuffEffect64
---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...};
    if (table.getn(parameters)< 3) then
    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
    end
    if (not (parameters[1] ) or  not (parameters[3] )) then
    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
end
    local attacker =  parameters[1];
    local fightResult =  parameters[3];

    local effectVal = buff.buffBean.f_BuffEffectValue;
    local damage = (fightResult.originalDamage * Utils.toRatio(effectVal[1]));
    DamageManager.setFighterHp(fight, attacker, buff.target, nil, DamageResultTypeEnum.NORMAL, -damage,
    attacker.hp - damage, true, true, true);
    DamageManager.recordStatisticsValue(buff.target, FightStatisticsEnum.ATTACK, damage);--统计伤害
    SkillRoleMgr.savePathFile("[" .. fight.frame .. "][EFFECT]Fighter " .. buff.target.fighterId .. " Buff:"
    .. buff.modelId .. " 反弹伤害:" .. damage);
        return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);



end

t.New()